Skip to content

Match plural "failures" in FAILING_RE check-status pattern - #20

Merged
ShiosOS merged 1 commit into
mainfrom
cursor/fix-failures-plural-regex-ff32
Jul 14, 2026
Merged

Match plural "failures" in FAILING_RE check-status pattern#20
ShiosOS merged 1 commit into
mainfrom
cursor/fix-failures-plural-regex-ff32

Conversation

@ShiosOS

@ShiosOS ShiosOS commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Problem

The word-boundary FAILING_RE introduced to replace the old substring fail matcher covers fail, fails, failed, failing, and failure, but not the plural failures. A check row whose accessible label reports failures only in that form (e.g. "ci 2 failures") is no longer classified as failing, so the conversation checks indicator can stay passing or unknown.

Verified directly: /\b(fail(?:ed|ing|ure|s)?|...)\b/i.test("2 failures") returns false (the \b after failure fails against the trailing s).

Fix

Change the inflection group from fail(?:ed|ing|ure|s)? to fail(?:ed|ing|ures?|s)? so both failure and failures match. Word-boundary behavior for check names like failover-suite is unchanged.

Testing

Added a regression case ("ci 2 failures" derives to failing) to the inflected-status-phrase test. Full suite passes: 79 tests across 6 files.

Open in Web Open in Cursor 

Co-authored-by: Julius Walton <ShiosOS@users.noreply.github.com>
@ShiosOS
ShiosOS marked this pull request as ready for review July 14, 2026 19:42

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low. Cursor Bugbot passed with no findings. Approved — narrow regex fix with regression test for plural "failures".

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@ShiosOS
ShiosOS merged commit 33bb597 into main Jul 14, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants